{header}

<script language="Javascript" src="./js/system/system.js"></script>
<script>

	$(document).ready(function(){
		$("#add").bind('click',function (){
			    var op=$("#op").val();
				var cname=$("#cname").val();
				var remark=$("#remark").val();
			    var cid=$("#cid").val();
				var pid=$("#pid").val();
				query_add(op,cname,remark,cid,pid);
				})
            }
	)
	function mod(cid,pid,cname,remark){
		if(cname=="顶极节点")location.href="system.php?action=key";
		$("#cid").val(cid);
		$("#op").val('mod');
		$("#cname").val(cname);
		$("#remark").val(remark);
		$("#cname").css("border","1px solid red");
		$("#remark").css("border","1px solid red");
		$("#pid").hide();
		$("#add").val('修改');
		window.scrollTo(0,0);//滚动到顶部
		$("#cancel").show();
	}
</script>

  <table width="100%"  border="0" cellspacing="1" cellpadding="4" class="tableOutborder">
    <tr class="tableHeader">
      <td colspan="2">业务数据KEY管理</td>
    </tr>
    <tr class="bg_0">
      <td width="10%" align="right">添加分类</td>
      <td>
名称:<input type="text" id="cname" name="cname" /> 
备注:<input type="text" id="remark" name="remark" /> 添加到:{addSelect}
<input type="hidden" id="op" name="op" value="add" />
<input type="hidden" id="cid" name="cid" />
<input type="submit" value="添加" id="add" />
<span style="display:none" id="cancel"><a href="javascript:location.href='system.php?action=key'">取消修改</a></span>

     
      
      </td>
      
    </tr>
    <!--<tr class="bg_0">
      <td width="10%" align="right">移动分类</td>
      <td>
{fromSelect}移动到:{toSelect}
<input type="hidden" id="moveop" name="op" value="move" />
<input type="submit" value="移动" id="move" />
</td>
    </tr>-->
  <tr class="bg_0"  >
      <td colspan="2" style="display:none;text-align:center;" id="_div_result"></td>
  </tr>
      <tr class="bg_0"  >
    <td width="10%" align="right">分类</td>
    <td colspan="2">{treelist}</td>
    </tr> 

  </table>


{footer}
